<?php
$access_level = 1;
$page_title = 'eTAT';
require_once 'library/Controller.php';
require_once 'Header.php';

$parser = new Parser();

//$Parser->parse('http://groups.google.com/group/etat/feed/atom_v1_0_msgs.xml');
//$Parser->parse('http://code.google.com/feeds/p/etat/svnchanges/basic');
$parser->parse('http://code.google.com/feeds/p/etat1/downloads/basic');

$channels = $parser->getChannels();
$items = $parser->getItems();

die(print_r($items));
?>
<h1><?php print $channels['TITLE']; ?></h1>

<?php foreach($items as $item) { ?>
	<p>ID: <?php print $item['ID']?></p>
	<p>Date: <?php print date("l, F d, Y g:i A",$item['UPDATED']); ?> </p>
	<p>Author: <?php if($item['AUTHOR']['NAME']) print $item['AUTHOR']['NAME']; else print $item['AUTHOR']['EMAIL']?></p>
	<p>Comment: <?php print $item['TITLE']?></p>
<?php print '<br>'; } ?>

<div class='clear'></div>
<?php require_once 'Footer.php'; ?>